# -*- coding: utf-8 -*-
from Decorator import Decorator

class Invaildate(Decorator):
    """docstring for Invaildate"""

    def get(self,item_id):
        """docstring for get"""
        print 'invalidate', 'get',self.arguments
        self.model.get(item_id)

    def insert(self,data):
        """docstring for get"""
        print 'invalidate', 'insert',self.arguments
        self.model.insert(data)

    def delete(self,item_id):
        """docstring for get"""
        print 'invalidate', 'delete',self.arguments
        self.model.delete(item_id)

    def update(self,item_id,data):
        """docstring for get"""
        print 'invalidate', 'update',self.arguments
        self.model.update(item_id,data)

